import request from '@/utils/request'
import { transFormValue } from '@/utils/tools'

//部门列表
export function departmentGetList(data) {
  return request({
    url: '/department/getList' + transFormValue(data),
    method: 'post'
  })
}

//创建部门
export function departmentCreate(data) {
    return request({
      url: '/department/create' + transFormValue(data),
      method: 'post'
    })
}

//更新部门
export function departmentUpdate(data) {
    return request({
      url: '/department/update' + transFormValue(data),
      method: 'post'
    })
}

//删除部门
export function departmentDelete(data) {
    return request({
      url: '/department/delete' + transFormValue(data),
      method: 'post'
    })
}

